package com.ruoyi.system.domain.webgroup;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.domain.entity.SysUser;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**日榜*/
public class DailyList extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /**表主键*/
    private Integer dailyListId;

    /**一天的总学习时长*/
    @Excel(name = "一天的总学习时长")
    @JsonFormat(pattern="HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern="HH:mm:ss")
    private Date dailyListDatetime;

    /**当前的时间（只包含年月日）*/
    @Excel(name = "当前的时间")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date dailyListDate;

    /**用户id*/
    @Excel(name = "用户id")
    private Integer userId;

    /**用户详细信息*/
    private SysUser sysUser;
    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public DailyList() {
    }

    public DailyList(Integer dailyListId, Date dailyListDatetime, Date dailyListDate, Integer userId) {
        this.dailyListId = dailyListId;
        this.dailyListDatetime = dailyListDatetime;
        this.dailyListDate = dailyListDate;
        this.userId = userId;
    }

    public Integer getDailyListId() {
        return dailyListId;
    }

    public void setDailyListId(Integer dailyListId) {
        this.dailyListId = dailyListId;
    }

    public Date getDailyListDatetime() {
        return dailyListDatetime;
    }

    public void setDailyListDatetime(Date dailyListDatetime) {
        this.dailyListDatetime = dailyListDatetime;
    }

    public Date getDailyListDate() {
        return dailyListDate;
    }

    public void setDailyListDate(Date dailyListDate) {
        this.dailyListDate = dailyListDate;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return super.toString();
    }
}
